//
//  WKBViewController.m
//  podTestLibrary
//
//  Created by JK210 on 10/14/2017.
//  Copyright (c) 2017 JK210. All rights reserved.
//

#import "WKBViewController.h"
#import "LCTableViewPickerControl.h"
//定义高度
#define kUIScreenSize [UIScreen mainScreen].bounds.size
#define kUIScreenWidth kUIScreenSize.width
#define kUIScreenHeight kUIScreenSize.height
#define kAdapterHeight kUIScreenHeight/667.0
#define kAdapterWidth kUIScreenWidth/375.0

#define RGBAColor(r,g,b,a) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:a]
#define RGBColor(r, g, b) RGBAColor(r,g,b,1.0)

@interface WKBViewController ()

@end

@implementation WKBViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
    
    LCAttributeItem * item1 = [LCAttributeItem new];
    item1.title = @"测试1";
    LCAttributeItem * item2 = [LCAttributeItem new];
    item2.title = @"测试2";
    
    LCTableViewPickerControl *pickerView = [[LCTableViewPickerControl alloc] initWithFrame:CGRectMake(0, 0, kUIScreenWidth, kUIScreenHeight) value:@"selected" items:@[item1, item2] offset:CGPointMake(0, 0)];
    pickerView.mark = @"1";
    
    [self.view addSubview:pickerView];
    
    [pickerView showInView:[UIApplication sharedApplication].keyWindow block:^(id sender, LCAttributeItem * item, BOOL isSeleected) {
        LCTableViewPickerControl *view = (LCTableViewPickerControl*)sender;
        
        
        
        [view dismiss];
    }];
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
